<!--包含头部文件-->
{include file="public/header" /}
<body>
<div class="page-container">
	<form class="form form-horizontal form-o2o-add" id="form-o2o-add" method="post" action="{:url('area/save')}">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商圈分类：</label>
			<div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" value="{$area->name}" placeholder="" id="name" name="name">
			</div>
                                                        
                        
		</div>
                                  <div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>所属城市：</label>
			<div class="formControls col-xs-8 col-sm-2"> 
				<span class="select-box">
				<select name="" class="select  cityId">
					<option value="0">--请选择--</option>
					{volist name="citys" id="vo"  }
					  <option value="{$vo.id}">{$vo.name}</option>
				                    {/volist}
					
				</select>
				</span>
			</div>
			<div class="formControls col-xs-8 col-sm-2">
				<span class="select-box">
				<select name="city_id" class="select  se_city_id">
                                                                                              {volist name="citys"  id="vo"}
                                                                                             <option value="{$vo.parent_id}" {if condition="$area.city_id eq $vo.parent_id"} selected="selected"{/if} >{$area->city_name}</option>
                                                                                             {/volist}
				</select>
				</span> 
			</div>
		</div>
                                          <div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">确认城市*</span>：</label>
			<div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" value="{$area->city_name}" placeholder="" id="city_name" name="city_name">
			</div>
                                                        
                        
		</div>
            
            
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>分类项：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<span class="select-box">
				<select name="parent_id" class="select">
					<option value="0">一级分类</option>
				                    {volist  name="areas" id="vo"}
					 <option value="{$vo.id}"{if condition="$area.parent_id eq $vo.id"} selected="selected"{/if} >--{$vo.name}</option>
					{/volist}
				</select>
				</span>
			</div>
		</div>
		
		<div class="row cl">
                                                              <input type="hidden" name="id" value="{$area->id}">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button  type="submit" class="btn btn-primary radius" ><i class="Hui-iconfont">&#xe632;</i> 保存</button>
				
				<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>
</div>
<!--包含头部文件-->
{include file="public/footer" /}
<script>
 var SCOPE = {
         'city_url' : '{:url('api/city/getCitysByParentId')}',
 };
</script>